package com.lly.bigdata.bgayx.common.constants.em;
/**
 * Created by Administrator on 2019/7/11 0011.
 */

/**
 * @author Administrator
 * @description
 * @date 2019/7/11 0011
 */
public class CommonEnum {

    public enum UserStatus {

        ok(1, "正常"), lock(2, "锁定"), no(0, "未启用"), off(3, "注销");

        private Integer idx;
        private String name;

        public Integer getIdx() {
            return idx;
        }

        public void setIdx(int idx) {
            this.idx = idx;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        private UserStatus(int idx, String name) {
            this.idx = idx;
            this.name = name;
        }
    }

    public enum OrgState {
        enable(1), stop(0);

        private Integer idx;

        public Integer getIdx() {
            return idx;
        }

        public void setIdx(Integer idx) {
            this.idx = idx;
        }

        OrgState(int idx) {
            this.idx = idx;
        }
    }

    public enum MenuEm {
        mu(0, "目录"), cd(1, "菜单"), qx(2, "权限");
        private Integer idx;
        private String name;

        public Integer getIdx() {
            return idx;
        }

        public void setIdx(Integer idx) {
            this.idx = idx;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        private MenuEm(int idx, String name) {
            this.idx = idx;
            this.name = name;
        }
    }

    public enum QYCCXX {
        FC("fc", "房产"), HBXJ("hbxj", "货币现金"), YSZK("yszk", "应收账款"), CL("cl", "车辆"), TD("td", "土地");
        private String code;
        private String name;

        private QYCCXX(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

    }

    public enum CommonTypeEnum {

        vchar("char"), vfloat("float"), vint("int"), vdouble("double"), vshort("short"), vbyte("byte"), vlong("long");

        private String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {

            this.name = name;
        }

        private CommonTypeEnum(String name) {
            this.name = name;
        }
    }

    public enum PinYinEnum {

        quanpin("0"), jianpin("1");

        private String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {

            this.name = name;
        }

        private PinYinEnum(String name) {
            this.name = name;
        }
    }
}
